/*jslint node:true*/
'use strict';
var express = require('express');
var app = express();

app.get('/', function (req, res) {
    console.log('主页 Get 请求');
    res.send('Hello Get');
});
app.post('/', function (req, res) {
    console.log('主页 Post 请求');
    res.send('Hello Post');
});
app.get('/list_user', function (req, res) {
    console.log('/list_user Get 请求');
    res.send('用户列表界面');
});
app.get('/ab*cd', function (req, res) {
    console.log('/ab*cd Get 请求');
    res.send('正则匹配');
});

var server = app.listen(8888, function () {
    var host = server.address().address,
        port = server.address().port;
    console.log('应用实例，访问地址为 http://%s:%s', host, port);
});